//
//  LKMyChooseCheckTypeViewController.m
//  YLHelper
//
//  Created by she1323 on 2018/5/11.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKMyChooseCheckTypeViewController.h"
#import "LKMyUpdateCustomerViewController.h"
#import "LKMyAddContinuInvestViewController.h"
@interface LKMyChooseCheckTypeViewController ()

@end

@implementation LKMyChooseCheckTypeViewController


-(RACSubject *)cancelSubject{
    if (!_cancelSubject) {
        _cancelSubject = [[RACSubject alloc] init];
    }
    return _cancelSubject;
}
-(RACSubject *)pushSubject{
    if (!_pushSubject) {
        _pushSubject = [[RACSubject alloc] init];
    }
    return _pushSubject;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self setCorder:self.orderCheckBtn];
    [self setCorder:self.customerUpdateBtn];
    // Do any additional setup after loading the view from its nib.
}

-(void)setCorder:(UIView *)view{
    view.layer.cornerRadius = 3;
    view.layer.masksToBounds = YES;
    view.layer.borderWidth = 1;
    view.layer.borderColor = blueDefault.CGColor;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)continueOrderAction:(id)sender {
    
    
    LKMyAddContinuInvestViewController *vc = [[LKMyAddContinuInvestViewController alloc] init];
    UINavigationController *nav = [[UINavigationController  alloc] initWithRootViewController:vc];
    [self presentViewController:nav animated:YES completion:nil];
//    [self.pushSubject sendNext:vc];
//    [self.navigationController pushViewController:vc animated:YES];
    
}
- (IBAction)customerChangeAction:(id)sender {
    
    LKMyUpdateCustomerViewController *vc = [[LKMyUpdateCustomerViewController alloc] init];
    UINavigationController *nav = [[UINavigationController  alloc] initWithRootViewController:vc];
    [self presentViewController:nav animated:YES completion:nil];
//    [self.pushSubject sendNext:vc];
//    [self.navigationController pushViewController:vc animated:YES];
    
}


- (IBAction)cancelAction:(id)sender {
    [self.cancelSubject sendNext:@""];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
